package com.javastar.modules.storage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.javastar.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 第三方文件存储配置表
 * </p>
 *
 * @author Java星球
 * @since 2023-07-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("novel_storage_config")
@ApiModel(value="StorageConfigEntity对象", description="第三方文件存储配置表")
public class StorageConfigEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "阿里云OSS地域")
    private String aliyunEndpoint;

    @ApiModelProperty(value = "阿里云OSS Key")
    private String aliyunAccessKeyId;

    @ApiModelProperty(value = "阿里云OSS Secret")
    private String aliyunAcessKeySecret;

    @ApiModelProperty(value = "阿里云OSS桶名称")
    private String aliyunBucketName;

    @ApiModelProperty(value = "阿里云OSS启用状态 0不可用 1启用")
    private Integer aliyunEnable;

    @ApiModelProperty(value = "是否启用，只选择启用中的1个生效 0禁用 1启用")
    private Integer enable;

}
